﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyChungCu_V
{
    public partial class dlgLogin : Form
    {
        public dlgLogin()
        {
            InitializeComponent();
            if (mtxtTenDN.Text != "")
                checkLuumatkhau.Checked = true;
            else 
                checkLuumatkhau.Checked = false;
        }
         public string TenDN
        {
            get { return mtxtTenDN.Text; }
        }
        public string MatKhau
        {
            get { return (mtxtMK.Text); }
        }
      

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void checkLuumatkhau_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void btLogin_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void dlgLogin_Load(object sender, EventArgs e)
        {
            if (mtxtTenDN.Text != "")
                checkLuumatkhau.Checked = true;
            else
                checkLuumatkhau.Checked = false;
        }

    }
}
